Skip to content

Instantly share code, notes, and snippets.

@davidteren
davidteren / nerd_fonts.md
Last active May 18, 2024 21:34
Install Nerd Fonts via Homebrew [updated & fixed]
@JuniorDjjr
JuniorDjjr / fakeMainOutputFile.sc
Created November 11, 2021 17:39
SA main.scm source code leaked from GTA SA The Definitive Edition
This file has been truncated, but you can view the full file.
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
// ****************************************PC SA Main Script********************************
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
SCRIPT_NAME MAIN //NEW MAIN
@2ik
2ik / cmd.bat
Last active May 18, 2024 21:30
Устранение ошибки в терминале VScode при запуске virtualenv
Ошибка:
.\venv\Scripts\activate : Невозможно загрузить файл C:\path\venv\Scripts\activate.ps1, так как выполнение сценариев отключено в этой системе.
Для получения дополнительных сведений см. about_Execution_Policies по адресу http://go.microsoft.com/fwlink/?LinkID=135170.
строка:1 знак:1
.\venv\Scripts\activate
~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess
Решение проблемы:
@selfawaresoup
selfawaresoup / uconsole.md
Last active May 18, 2024 21:27
Notes for Clockwork uConsole setup

uConsole Notes

Batteries

I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.

Get GNOME Shell and GDM3

sudo apt install gnome-shell gdm3
@Erfan-Ahmadi
Erfan-Ahmadi / rendering_engine.md
Last active May 18, 2024 21:24
Rendering Engine Development

1. What does the Rendering Engine Need?

  • Rendering Engine
    • Support for Multiple Graphics APIs : OpenGL | Vulkan | DirectX12 | DirectX11 | Metal
    • Content Export Pipeline : Create Maya/Max Plugins to export meshes based on Renderers needs. (Assimp Commercial Licence -> Pay)
    • Texture Compression Libraries
    • Material System : Artists Configure shaders, textures, parameters to import in game
    • Game-side Manager of Models/Materials/Lights
    • Good Visibility System (Frustum/Occlusion) (VisibilityBuffers?)
    • Multi-Threded Submission System to reduce cost of submission to GPU
  • Lighting/Shadow Rendering System
@hadisfr
hadisfr / shadowsocks_on_ubuntu.md
Created July 20, 2018 05:20
a simple guid to run a shadowsocks proxy on Ubuntu

Run a Shadowsocks Proxy Server on Ubuntu

Install Shadowsocks

It's possible to install ss-server by apt:

apt-get install shadowsocks-libev
@medimicgolfer
medimicgolfer / cert-manager-test.sh
Created May 18, 2024 21:23 — forked from jakexks/cert-manager-test.sh
Cert-manager selfsigned as cluster issuer
#!/usr/bin/env bash
set -ex
export TEST_CLUSTER_NAME=quick-test
export CERT_MANAGER_VERSION=v1.3.1
export KIND_IMAGE=kindest/node:v1.20.2
# Create test cluster
echo "Creating test cluster..."
kind create cluster --name="$TEST_CLUSTER_NAME" --image="$KIND_IMAGE"
until kubectl --timeout=120s wait --for=condition=Ready pods --all --namespace kube-system; do sleep 1; done
@jimmywarting
jimmywarting / readme.md
Last active May 18, 2024 21:22
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@skarlekar
skarlekar / prompt-compare.py
Created May 18, 2024 21:20
This Python script provides a utility to compute the cosine similarity between two text sentences. This script is useful for applications like plagiarism detection, semantic search, or text data preprocessing where understanding the degree of similarity between texts is crucial.
"""
This Python script provides a utility to compute the cosine similarity between two text sentences using the TF-IDF
(Term Frequency-Inverse Document Frequency) vectorization approach.
Key Components:
1. Import Statements: The script begins by importing necessary modules:
- TfidfVectorizer from sklearn.feature_extraction.text for converting text data into a matrix of TF-IDF features.
- cosine_similarity from sklearn.metrics.pairwise to compute the similarity between two vectors in the TF-IDF space.
- sys for accessing command-line arguments.
@Kvnbbg
Kvnbbg / make_dmg.sh
Last active May 18, 2024 21:19 — forked from HuangJiaLian/make_dmg.sh
Two steps to turn a Python file to a macOS installer
#!/bin/sh
# References
# https://www.pythonguis.com/tutorials/packaging-pyqt5-applications-pyinstaller-macos-dmg/
# https://medium.com/@jackhuang.wz/in-just-two-steps-you-can-turn-a-python-script-into-a-macos-application-installer-6e21bce2ee71
# ---------------------------------------
# Clean up previous builds
# ---------------------------------------